import request from '@/utils/request'

// 查询庄园动态信息列表
export function listTrends(query) {
  return request({
    url: '/grape/trends/list',
    method: 'get',
    params: query
  })
}

// 查询庄园动态信息详细
export function getTrends(trendsId) {
  return request({
    url: '/grape/trends/' + trendsId,
    method: 'get'
  })
}

// 新增庄园动态信息
export function addTrends(data) {
  return request({
    url: '/grape/trends',
    method: 'post',
    data: data
  })
}

// 修改庄园动态信息
export function updateTrends(data) {
  return request({
    url: '/grape/trends',
    method: 'put',
    data: data
  })
}

// 删除庄园动态信息
export function delTrends(trendsId) {
  return request({
    url: '/grape/trends/' + trendsId,
    method: 'delete'
  })
}
